package com.fastloan.mgt.jx.model.dto;

import com.kawins.spring.valid.annotation.IDCard;

import javax.validation.constraints.NotNull;
import java.util.StringJoiner;

/**
 * 法人还款情况查询
 *
 * @author chenkai
 * createTime 2018-01-2018/1/7 16:38
 */
public class JxRepaymentDTO {

    /**
     * 身份证号(与登录名必填一项，身份证号优先级高)
     */
    private String card_id;

    /**
     * 贷款订单号
     */
    @NotNull
    private String agent_order_no;

    /**
     * 登录名
     */
    private String user_id;

    /**
     * 机构编号
     */
    @NotNull
    private String agent_id;

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getAgent_id() {
        return agent_id;
    }

    public void setAgent_id(String agent_id) {
        this.agent_id = agent_id;
    }

    public String getCard_id() {
        return card_id;
    }

    public void setCard_id(String card_id) {
        this.card_id = card_id;
    }

    public String getAgent_order_no() {
        return agent_order_no;
    }

    public void setAgent_order_no(String agent_order_no) {
        this.agent_order_no = agent_order_no;
    }


    @Override
    public String toString() {
        return new StringJoiner(", ", this.getClass().getSimpleName() + "[", "]")
                .add("agent_id = " + agent_id)
                .add("agent_order_no = " + agent_order_no)
                .add("card_id = " + card_id)
                .add("user_id = " + user_id)
                .toString();
    }
}
